import {getAsyncComponent} from "@/utils";
import {Plugin} from "vue";

const asyncComponentPathArr = [
    {
        name: "PersonalCenter",
        path: '../components/PersonalCenter/PersonalCenter.vue'
    }
]
const asyncComponentsPlugin: Plugin = {
    install(app) {
        for (let item of asyncComponentPathArr) {
            app.component(item.name, getAsyncComponent(item.path))
        }
    }
}
export default asyncComponentsPlugin